﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace ImmovablesManager
{
    public class RealtorsDataGridDataView : INotifyPropertyChanged
    {
        private Guid _realtorId;
        public Guid RealtorId
        {
            get { return _realtorId; }
            set
            {
                _realtorId = value;
                NotifyPropertyChanged("RealtorId");
            }
        }

        private string _realtorOrganization;
        public string RealtorOrganization
        {
            get { return _realtorOrganization; }
            set
            {
                _realtorOrganization = value;
                NotifyPropertyChanged("RealtorOrganization");
            }
        }



        private string _realtorFirstName;
        public string RealtorFirstName
        {
            get { return _realtorFirstName; }
            set
            {
                _realtorFirstName = value;
                NotifyPropertyChanged("RealtorFirstName");
            }
        }

        private string _realtorSecondName;
        public string RealtorSecondName
        {
            get { return _realtorSecondName; }
            set
            {
                _realtorSecondName = value;
                NotifyPropertyChanged("RealtorSecondName");
            }
        }

        private string _realtorThirdName;
        public string RealtorThirdName
        {
            get { return _realtorThirdName; }
            set
            {
                _realtorThirdName = value;
                NotifyPropertyChanged("RealtorThirdName");
            }
        }
        


        private string _realtorPhone;
        public string RealtorPhone
        {
            get { return _realtorPhone; }
            set
            {
                _realtorPhone = value;
                NotifyPropertyChanged("RealtorPhone");
            }
        }



        private string _realtorAdditionalPhone;
        public string RealtorAdditionalPhone
        {
            get { return _realtorAdditionalPhone; }
            set
            {
                _realtorAdditionalPhone = value;
                NotifyPropertyChanged("RealtorAdditionalPhone");
            }
        }

        private string _realtorEmail;
        public string RealtorEmail
        {
            get { return _realtorEmail; }
            set
            {
                _realtorEmail = value;
                NotifyPropertyChanged("RealtorEmail");
            }
        }


        private string _realtorUserName;
        public string RealtorUserName
        {
            get { return _realtorUserName; }
            set
            {
                _realtorUserName = value;
                NotifyPropertyChanged("RealtorUserName");
            }
        }
        
        
        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

        #region Implementation of INotifyPropertyChanged

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion
    }
}
